package cn.fintecher.pangolin.service.dataimp.repository;

import cn.fintecher.pangolin.entity.mysql.CaseInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;

public interface CaseInfoRepository extends JpaRepository<CaseInfo, String>, QuerydslPredicateExecutor<CaseInfo> {
    /**
     * 根据案件编号查询案件
     */
    CaseInfo findByCaseNumber(String caseNumber);

    /**
     * 检查是否存在
     */
    boolean existsByCaseNumber(String caseNumber);
}
